home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mmdf / mmdf-IIb.43 / h / d_structs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1986-03-23  |  2.6 KB  |  101 lines

  1. #
  2. /*
  3.  *     structure of file descriptors returned from 'pipe'
  4.  */
  5.  
  6. struct  pipedesc
  7.     {
  8.     int  p_readfd;                  /*  read file descriptor  */
  9.     int  p_writefd;                 /*  write file descriptor  */
  10. };
  11.  
  12.  
  13.  
  14.  
  15. /*
  16.  *     this structure contains the names and relationships of the available
  17.  *     dial out ports, their lock files, and the acu name.
  18.  *
  19.  *     Feb 84  Dan Long  added p_type for line selection
  20.  */
  21.  
  22. struct  dialports
  23.     {
  24.     char  *p_port;                  /*  path name of port  */
  25.     char  *p_lock;                  /*  path name of lock file  */
  26.     char  *p_acu;                   /*  path name of acu device  */
  27.     char  *p_acupref;               /*  initialization string for acu */
  28.     char  *p_acupost;               /*  dialing termination string, for acu */
  29.     int    p_speed;                 /*  port speed index  */
  30.     char  *p_ltype;                 /*  line type (e.g. WATS) */
  31.     char  *p_access;                /*  path name of access file  */
  32. };
  33.  
  34.  
  35.  
  36.  
  37. /*
  38.  *     this structure identifies the available direct connect lines, their
  39.  *     speeds, lock files, and access files.
  40.  */
  41.  
  42. struct directlines
  43.     {
  44.     char  *l_name;                    /*  line name  */
  45.     char  *l_tty;                     /*  local tty path name  */
  46.     char  *l_lock;                    /*  lock file path name  */
  47.     int  l_speed;                     /*  speed index  */
  48.     char  *l_access;                  /*  path name of access list  */
  49. };
  50.  
  51.  
  52.  
  53.  
  54. /*
  55.  *     structure passed to 'd_dial' which contains the phone number/port
  56.  *     speed pairings for the possible connection paths.
  57.  */
  58.  
  59. struct  telspeed
  60.     {
  61.     int  t_speed;                   /*  speed index  */
  62.     char  t_number[40];             /*  phone number in canonical form  */
  63. };
  64.  
  65.  
  66.  
  67.  
  68. /*  structure of speed names/index pairs.  */
  69.  
  70. struct  speedtab
  71.     {
  72.     char  *s_speed;                 /*  pointer to speed name string  */
  73.     int  s_index;                   /*  speed index  */
  74. };
  75.  
  76.  
  77. /*  A structure used in keeping track of packets as they are sent  */
  78.  
  79. struct pkbuff
  80.     {
  81.     char p_data[MAXPACKET + 2];    /*  the actual data to be sent    */
  82.     int p_length;        /*  # of chars in the data    */
  83.     int p_seqnum;        /*  the sequence number        */
  84.     int p_acktype;        /*  the ack type expected    */
  85.     int p_ntries;        /*  # of times it has been sent    */
  86.     int p_timeo;        /*  time out value for ACK    */
  87.     char p_pktype;        /*  the packet type        */
  88. };
  89.  
  90.  
  91.  
  92. /*  Used to keep track of the script files that are open  */
  93. struct opfile
  94.   {
  95.   char o_fname[82];
  96.   FILE *o_chan;
  97.   unsigned o_line;
  98.   int o_nfields;
  99.   char *o_fields[MAXFIELDS];
  100. };
  101.